package com.qibao.toolkit.exception.register;

import com.qibao.toolkit.exception.config.ExceptionHandleConfiguration;
import com.qibao.toolkit.exception.config.ExceptionHandleStrategyConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @author wangcheng
 * @version $Id: EnableExceptionHandle.java, v0.1 2018/9/26 16:17 wangcheng Exp $$
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@AutoConfigureBefore(ErrorMvcAutoConfiguration.class)
@Import({ ExceptionHandleStrategyConfiguration.class,ExceptionHandleConfiguration.class})
public @interface EnableExceptionHandle {

}
